/*    */ package net.sourceforge.appgen.generator;
/*    */ 
/*    */ import java.io.File;
/*    */ import net.sourceforge.appgen.model.Entity;
/*    */ import net.sourceforge.appgen.model.GenerationInformation;
/*    */ 
/*    */ public abstract class OnceFileGenerator extends FileGenerator
/*    */ {
/* 10 */   protected boolean aleradyGenerate = false;
/*    */ 
/*    */   public OnceFileGenerator(GenerationInformation generationInformation) {
/* 13 */     super(generationInformation);
/*    */   }
/*    */ 
/*    */   public File generate(Entity entity) throws Exception
/*    */   {
/* 18 */     if (!this.aleradyGenerate) {
/* 19 */       this.aleradyGenerate = true;
/*    */ 
/* 21 */       return super.generate(entity);
/*    */     }
/*    */ 
/* 24 */     return null;
/*    */   }
/*    */ 
/*    */   public boolean existFile(Entity entity)
/*    */   {
/* 29 */     if (!this.aleradyGenerate) {
/* 30 */       return super.existFile(entity);
/*    */     }
/*    */ 
/* 33 */     return false;
/*    */   }
/*    */ }

/* Location:           C:\Users\lzl6066\Downloads\net.sourceforge.appgen_1.2.0\plugins\net.sourceforge.appgen_1.2.0.201002031718\
 * Qualified Name:     net.sourceforge.appgen.generator.OnceFileGenerator
 * JD-Core Version:    0.6.0
 */